package DesignPattern.simpleFactory;

/**
 * @author lcx
 *
 */
public class Factory 
{

	public AbstractItem getItem(int num)
	{
		switch(num)
		{
		case 1:
			return new ItemA();
		case 2:
			return new ItemB();
		}
		return null;
		
	}
}
